package com.ebupt.migu.music.bannertwo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.music.bannertwo.entity.BannerTwoDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerTwoDetailMapper extends BaseMapper<BannerTwoDetail> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<BannerTwoDetail>
   */
	public List<BannerTwoDetail> selectByMainId(@Param("mainId") String mainId);
}
